package com.ruoyi.business.service;

import java.util.List;
import com.ruoyi.business.domain.JtStocktaking;
import com.ruoyi.business.vo.StocktakingVo;

/**
 * 库存盘点Service接口
 * 
 * @author Alan Zhang
 * @date 2025-06-13
 */
public interface IJtStocktakingService 
{
    /**
     * 查询库存盘点
     * 
     * @param stocktakingId 库存盘点主键
     * @return 库存盘点
     */
    public JtStocktaking selectJtStocktakingByStocktakingId(Long stocktakingId);

    /**
     * 查询库存盘点列表
     * 
     * @param jtStocktaking 库存盘点
     * @return 库存盘点集合
     */
    public List<JtStocktaking> selectJtStocktakingList(JtStocktaking jtStocktaking);

    /**
     * 新增库存盘点
     * 
     * @param jtStocktaking 库存盘点
     * @return 结果
     */
    public int insertJtStocktaking(JtStocktaking jtStocktaking);

    /**
     * 修改库存盘点
     * 
     * @param jtStocktaking 库存盘点
     * @return 结果
     */
    public int updateJtStocktaking(JtStocktaking jtStocktaking);

    /**
     * 批量删除库存盘点
     * 
     * @param stocktakingIds 需要删除的库存盘点主键集合
     * @return 结果
     */
    public int deleteJtStocktakingByStocktakingIds(String stocktakingIds);

    /**
     * 删除库存盘点信息
     * 
     * @param stocktakingId 库存盘点主键
     * @return 结果
     */
    public int deleteJtStocktakingByStocktakingId(Long stocktakingId);

    /**
     * 库存盘点导入
     * @param list
     * @param optName
     * @return
     */
    public String importStocktaking(List<StocktakingVo> list, String optName, Long warehouseId);
}
